import request from '@/utils/request'
// 前台展示，条件搜索
export function searchList(params) {
  return request({
    url:'/heat/searchList',
    method:'get',
    params:params
  })
}

export function fetchList(params) {
  return request({
    url:'/heat/list',
    method:'get',
    params:params
  })
}
export function createHeat(data) {
  return request({
    url:'/heat/create',
    method:'post',
    data:data
  })
}

export function deleteHeats(data) {
  return request({
    url:'/heat/delete/batch',
    method:'post',
    data:data
  })
}

export function getHeat(id) {
  return request({
    url:'/heat/'+id,
    method:'get',
  })
}

export function updateHeat(id,data) {
  return request({
    url:'/heat/update/'+id,
    method:'post',
    data:data
  })
}

